<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="container">

  </div>
  <script>
    // var str = '<span>{{abc}}</span>'
    // var data = {
    //   abc:'hello'
    // }
    // // 分组
    // var reg = /{{(.*)}}/
    // // console.log(reg.exec(str))
    // var arr = reg.exec(str)
    // console.log(arr)
    // console.log(str.replace(reg,data[arr[1]]))
    // // console.log(str.replace('{{msg}}',data['msg']))

    var reg = /\d{4}[-/.]\d{2}[-/.]\d{2}/
  </script>
</body>
</html>
